WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
rotations.h File Reference
#include "core/common/wolf.h"

Go to the source code of this file.

Namespaces

namespace  wolf
 

Functions

template<typename T >
T wolf::pi2pi (const T &_angle)
 Returns the angle wrapped to [-pi, pi]. More...
 
template<typename T >
T wolf::toRad (const T deg)
 Conversion to radians. More...
 
template<typename T >
T wolf::toDeg (const T rad)
 Conversion to degrees. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 3 > wolf::skew (const Eigen::MatrixBase< Derived > &_v)
 Skew symmetric matrix. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 1 > wolf::vee (const Eigen::MatrixBase< Derived > &_m)
 Inverse of skew symmetric matrix. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 3 > wolf::q2R (const Eigen::QuaternionBase< Derived > &_q)
 Quaternion to rotation matrix conversion. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 3 > wolf::q2R (const Eigen::MatrixBase< Derived > &_q)
 Quaternion to rotation matrix conversion. More...
 
template<typename Derived >
Eigen::Quaternion< typename Derived::Scalar > wolf::R2q (const Eigen::MatrixBase< Derived > &_R)
 Rotation matrix to quaternion conversion. More...
 
template<typename D >
Eigen::Quaternion< typename D::Scalar > wolf::e2q (const Eigen::MatrixBase< D > &_euler)
 Euler angles to quaternion. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 3 > wolf::e2R (const Eigen::MatrixBase< Derived > &_e)
 Euler angles to rotation matrix. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 1 > wolf::R2e (const Eigen::MatrixBase< Derived > &_R)
 Euler angles (roll, pitch, yaw) of a rotation matrix. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 1 > wolf::q2e (const Eigen::MatrixBase< Derived > &_q)
 Euler angles (roll, pitch, yaw) of a quaternion given as a 4-vector [x, y, z, w]. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 1 > wolf::q2e (const Eigen::QuaternionBase< Derived > &_q)
 Euler angles (roll, pitch, yaw) of a quaternion. More...
 
template<typename Derived >
Eigen::MatrixBase< Derived >::Scalar wolf::getYaw (const Eigen::MatrixBase< Derived > &_M)
 Yaw angle of a rotation matrix or of a quaternion given as a 4-vector [x, y, z, w]. More...
 
template<typename Derived >
Eigen::QuaternionBase< Derived >::Scalar wolf::getYaw (const Eigen::QuaternionBase< Derived > &_q)
 Yaw angle of a quaternion. More...
 
template<typename Derived >
Eigen::Quaternion< typename Derived::Scalar > wolf::exp_q (const Eigen::MatrixBase< Derived > &_v)
 Quaternion exponential map. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 1 > wolf::log_q (const Eigen::QuaternionBase< Derived > &_q)
 Quaternion logarithmic map. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 3 > wolf::exp_R (const Eigen::MatrixBase< Derived > &_v)
 Rotation matrix exponential map. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 1 > wolf::log_R (const Eigen::MatrixBase< Derived > &_R)
 Rotation matrix logarithmic map. More...
 
template<typename Derived >
Eigen::Quaternion< typename Derived::Scalar > wolf::v2q (const Eigen::MatrixBase< Derived > &_v)
 Rotation vector to quaternion conversion. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 1 > wolf::q2v (const Eigen::QuaternionBase< Derived > &_q)
 Quaternion to rotation vector conversion. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 3 > wolf::v2R (const Eigen::MatrixBase< Derived > &_v)
 Rotation vector to rotation matrix conversion. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 1 > wolf::R2v (const Eigen::MatrixBase< Derived > &_R)
 Rotation matrix to rotation vector conversion. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 3 > wolf::jac_SO3_right (const Eigen::MatrixBase< Derived > &_theta)
 Computes Jr (Right Jacobian) Right Jacobian for exp map in SO(3) - equation (10.86) and following equations in G.S. Chirikjian, "Stochastic Models, Information Theory, and Lie Groups", Volume 2, 2008. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 3 > wolf::jac_SO3_right_inv (const Eigen::MatrixBase< Derived > &_theta)
 Computes Jrinv (inverse of Right Jacobian which corresponds to the jacobian of log) Right Jacobian for Log map in SO(3) - equation (10.86) and following equations in G.S. Chirikjian, "Stochastic Models, Information Theory, and Lie Groups", Volume 2, 2008. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 3 > wolf::jac_SO3_left (const Eigen::MatrixBase< Derived > &_theta)
 Computes Jl (Left Jacobian) Left Jacobian for exp map in SO(3) - equation (10.86) and following equations in G.S. Chirikjian, "Stochastic Models, Information Theory, and Lie Groups", Volume 2, 2008. More...
 
template<typename Derived >
Eigen::Matrix< typename Derived::Scalar, 3, 3 > wolf::jac_SO3_left_inv (const Eigen::MatrixBase< Derived > &_theta)
 Computes Jl_inv (inverse of Left Jacobian which corresponds to the jacobian of log) Left Jacobian for Log map in SO(3) - equation (10.86) and following equations in G.S. Chirikjian, "Stochastic Models, Information Theory, and Lie Groups", Volume 2, 2008. More...
 
template<typename D1 , typename D2 , typename D3 , typename D4 , typename D5 >
void wolf::compose (const Eigen::QuaternionBase< D1 > &_q1, const Eigen::QuaternionBase< D2 > &_q2, Eigen::QuaternionBase< D3 > &_q_comp, Eigen::MatrixBase< D4 > &_J_comp_q1, Eigen::MatrixBase< D5 > &_J_comp_q2)
 Composition of two quaternions q1 * q2, with the Jacobians wrt local (right) perturbations. More...
 
template<typename D1 , typename D2 , typename D3 , typename D4 , typename D5 >
void wolf::between (const Eigen::QuaternionBase< D1 > &_q1, const Eigen::QuaternionBase< D2 > &_q2, Eigen::QuaternionBase< D3 > &_q_between, Eigen::MatrixBase< D4 > &_J_between_q1, Eigen::MatrixBase< D5 > &_J_between_q2)
 Quaternion between two quaternions q1.conj * q2, with the Jacobians wrt local (right) perturbations. More...
 
template<typename D1 , typename D2 >
Eigen::Quaternion< typename D1::Scalar > wolf::plus_right (const Eigen::QuaternionBase< D1 > &q, const Eigen::MatrixBase< D2 > &v)
 Right plus: q * exp_q(v) More...
 
template<typename D1 , typename D2 >
Eigen::Matrix< typename D2::Scalar, 3, 1 > wolf::minus_right (const Eigen::QuaternionBase< D1 > &q1, const Eigen::QuaternionBase< D2 > &q2)
 Right minus: log_q(q1.conj * q2) More...
 
template<typename D1 , typename D2 >
Eigen::Quaternion< typename D1::Scalar > wolf::plus_left (const Eigen::MatrixBase< D2 > &v, const Eigen::QuaternionBase< D1 > &q)
 Left plus: exp_q(v) * q. More...
 
template<typename D1 , typename D2 >
Eigen::Matrix< typename D2::Scalar, 3, 1 > wolf::minus_left (const Eigen::QuaternionBase< D1 > &q1, const Eigen::QuaternionBase< D2 > &q2)
 Left minus: log_q(q2 * q1.conj) More...
 
template<typename D1 , typename D2 >
Eigen::Quaternion< typename D1::Scalar > wolf::plus (const Eigen::QuaternionBase< D1 > &q, const Eigen::MatrixBase< D2 > &v)
 Plus (right plus): q * exp_q(v) More...
 
template<typename D1 , typename D2 >
Eigen::Matrix< typename D2::Scalar, 3, 1 > wolf::minus (const Eigen::QuaternionBase< D1 > &q1, const Eigen::QuaternionBase< D2 > &q2)
 Minus (right minus): log_q(q1.conj * q2) More...
 
template<typename D1 , typename D2 >
Eigen::Matrix< typename D2::Scalar, 3, 1 > wolf::diff (const Eigen::QuaternionBase< D1 > &q1, const Eigen::QuaternionBase< D2 > &q2)
 Difference (right minus): log_q(q1.conj * q2) More...